/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.flyweight;

/**
 * 享元类型：使用大量的对象时可以考虑
 * @author caicongyang1
 * @version id: FlyWeightClientTest, v 0.1 17/5/24 下午7:54 caicongyang1 Exp $$
 */
public class FlyWeightClientTest {
    public static void main(String[] args) {
        WebSiteFactory factory = new WebSiteFactory();

        WebSite fx = factory.getWebSiteCategory("产品展示");
        fx.use();

        WebSite fy = factory.getWebSiteCategory("公司介绍");
        fy.use();


    }
}
